<%--
  Created by IntelliJ IDEA.
  User: 黑白客
  Date: 2019/6/5
  Time: 18:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>欢迎登录</title>
    <script type="text/javascript">
        function validateForm() {
            var x = document.forms["user"]["id"].value;
            if (x == null || x == "") {
                alert("请输入银行卡号");
                return false;
            }
        }
    </script>
</head>
<body>
    <form action="${pageContext.request.contextPath}/loginTransferServlet" method="post" name="user" onsubmit="return validateForm()">
        银行卡号：<input name="id" type="text" oninput="value=value.replace(/[^\d]/g,'')"><br/>
        登录密码：<input name="Password" type="password" oninput="value=value.replace(/[^\d]/g,'')" ><br/>
        <input type="submit" name="" value="确认登录" ><br/>
    </form>
</body>
</html>
